import { GiftItem } from "../../daily/gift/GiftItem";
import { Dispatcher } from "../../../../mvc/core/Dispatcher";
import { EventName } from "../../../mvc/EventName";
//class WelGiftItem
    
    export  class WelGiftItem extends GiftItem
    {
        constructor(arg1: Boolean=false)
        {
            super(arg1);
            return;
        }

        protected /* override */ initUI(arg1: Boolean=false): void
        {
            super.initUI(arg1);
            if (!arg1) 
            {
                _itemBg.x = 80;
                _itemIcon.x = _itemBg.x + 3;
                _name.x = _itemBg.x + _itemBg.width / 2;
                _title.x = _itemBg.x + _itemBg.width + 50;
                _itemTxt.x = 290;
                _optBtn1.x = 500;
                _optBtn2.x = _optBtn1.x;
            }
            return;
        }

        protected /* override */ onRemoveFromStage(arg1: Object /* flash.events.Event */): void
        {
            super.onRemoveFromStage(arg1);
            Dispatcher.removeEventListener(EventName.HavePay, onPlayerHavePayHandler);
            return;
        }

        public /* override */ get width(): number
        {
            return 690;
        }

        public /* override */ get height(): number
        {
            return 199;
        }
    }
